package com.ruoyi.questionnaire.domain;

import java.util.List;

/**
 * 问卷答案提交DTO
 * 
 * 用于接收前端提交的问卷答案数据
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class QuestionnaireAnswerSubmitDTO {
    /** 问卷ID */
    private Long questionnaireId;
    
    /** 用户ID */
    private Long userId;
    
    /** 答案详情列表 */
    private List<AnswerDetailDTO> details;

    // ==================== Getter/Setter 方法 ====================
    
    public Long getQuestionnaireId() { return questionnaireId; }
    public void setQuestionnaireId(Long questionnaireId) { this.questionnaireId = questionnaireId; }
    
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }
    
    public List<AnswerDetailDTO> getDetails() { return details; }
    public void setDetails(List<AnswerDetailDTO> details) { this.details = details; }
    
    /**
     * 答案详情DTO
     */
    public static class AnswerDetailDTO {
        /** 题目ID */
        private Long questionId;
        
        /** 选项值 */
        private String optionValue;
        
        public Long getQuestionId() { return questionId; }
        public void setQuestionId(Long questionId) { this.questionId = questionId; }
        
        public String getOptionValue() { return optionValue; }
        public void setOptionValue(String optionValue) { this.optionValue = optionValue; }
    }
} 